<%-- 
    Document   : auth
    Created on : Sep 22, 2012, 6:27:51 PM
    Author     : KUNAL
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Authentication</title>
    </head>
    <body>
        <%
            String name=request.getParameter("unm");
            String pass=request.getParameter("upw");
            
            if(name.equals("admin") && name.equals("admin"))
            {
                response.sendRedirect("welcomea.jsp");
            }
            
            if(name.equals("staff") && name.equals("staff"))
            {
                response.sendRedirect("welcomes.jsp");
            }
            
            if(name.equals("clerk") && name.equals("clerk"))
            {
                response.sendRedirect("welcomec.jsp");
            }
        %>
    </body>
</html>
